package com.usmarter.server;

import org.springframework.context.annotation.Bean;

import com.usmarter.model.AnswerEntity;
import com.usmarter.model.QuestionEntity;
import com.usmarter.model.UserAccountEntity;
import com.usmarter.server.db.AnswerCRUD;
import com.usmarter.server.db.CRUD;
import com.usmarter.server.db.QuestionCRUD;
import com.usmarter.server.db.UserAccountCRUD;

@org.springframework.context.annotation.Configuration
public class Configuration {

	@Bean
	public AnswerCRUD createAnswerCRUD() 
	{
		return new AnswerCRUD(); 
	}

	@Bean
	public QuestionCRUD createQuestionCRUD() 
	{
		return new QuestionCRUD(); 
	}

	@Bean
	public UserAccountCRUD createUserAccountCRUD() 
	{
		return new UserAccountCRUD(); 
	}

}
